package io;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class ReadStringdome {
    public static void main(String[] args) throws IOException {
        File file = new File("./dome.txt");
        FileInputStream fis = new FileInputStream(file);
        long length = file.length();
        byte[] bytes = new byte[(int) length];
        fis.read(bytes);
        String string = new String(bytes,StandardCharsets.UTF_8);
        System.out.println(string);
        fis.close();

    }
}
